// pages/attention/attention.js
const App = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    commodityData: []
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    this.setData({
      commodityData: App.globalData.productInfor
    })
  },

  goShop: function (event) {
    App.globalData.productIndex = event.currentTarget.id;

    wx.navigateTo({
      url: '../shop/shop'
    })
  }
})